feat(gradle): add Gradle ecosystem with toml-span catalog parser#66
Merged
feat(gradle): add Gradle ecosystem with toml-span catalog parser#66
Conversation
Add deps-gradle crate supporting three Gradle manifest formats: - Version Catalog (libs.versions.toml) via toml-span for reliable spans - Kotlin DSL (build.gradle.kts) via regex parsing - Groovy DSL (build.gradle) via regex parsing Reuses MavenCentralRegistry from deps-maven for version resolution. Extract shared LineOffsetTable, position_in_range, and complete_package_names_generic to deps-core for DRY compliance.
a0a11b1 to
08a458d
Compare
Route androidx.*, com.google.firebase.*, com.google.android.*, com.google.gms.*, and com.android.* packages to Google Maven (dl.google.com/dl/android/maven2) instead of Maven Central. Uses prefix-based routing for zero extra network requests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deps-gradlecrate with support for three Gradle manifest formats:libs.versions.toml) — parsed viatoml-spanfor reliable span trackingbuild.gradle.kts) — regex-based parsingbuild.gradle) — regex-based parsingMavenCentralRegistryfromdeps-mavenfor version resolutionLineOffsetTable,position_in_range,complete_package_names_generictodeps-coretoml-spaninstead oftoml_editfor catalog parser — eliminates inline table span workaroundsandroidx.*,com.google.firebase.*,com.google.android.*,com.android.*)Test plan
cargo clippy --workspace -- -D warningscleancargo +nightly fmt --checkcleanRUSTDOCFLAGS="-D warnings" cargo doc --no-deps --workspacecleanlibs.versions.toml